<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	
	<script type="text/javascript" src="../js/jquery-1.4.4.min.js"></script>
	
	<style type="text/css">
	*{
		margin:0px;
		padding:0px;
	}
	.top{
		width:100%; 
		height:35px; 
		line-height:35px; 
		font-size:12px;	
	}
	.top ul li{
		list-style:none;
		float:right;
		width:60px;
	}
	a{
		color:#06F;
		text-decoration:none;
	}
	a:hover{
		text-decoration:underline;
	}
	.show{
		display:block;
	}
	.hidden{
		display:none;
	}
	.show ul li{
		height:26px;
		line-height:26px;
		background:#FFF;
		padding-left:40px;
		font-size:13px;
		list-style: none;
	}
	.show ul li:hover{
		background:#EFEFEF;
	}
	.show ul li a{
		text-decoration: none;
	}
	.manager_nav{
		height:38px;
		color:#FFF;
		font-size:13px;
		font-weight:bold;
		line-height:36px;
		padding-left:12px;
		border-bottom:1px dashed #333;
	}
	table tr{
		height: 38px;
	}
	.msg{
		width:280px; 
		height:32px; 
		line-height:32px;
		margin:-32px 250px; 
		position:absolute;
		color:red;
		font-size:2px;
	}
	.resultMsg{
		width:320px; 
		height:80px;
		font-size:30px;
		color:#093;
		font-weight:bold;
		background:#DFDFDF;
		line-height:80px;
		text-align:center;
		border-radius:10px;
		position:absolute;
		z-index:20;
	}
	</style>
</head>

<body onclick="cidaCheck()">
	<div style="height:35px;;width:100%;border-bottom:1px solid #CCC; z-index:-1; position:absolute; background:#EFEFEF;"></div>
	<div style="width:1200px; margin:auto;">
		<!-- 顶部索引 -->
        <div class="top">
        	<div style="width:50%; float:left;">你好！欢迎进入中国报险网。</div>
            <div style="width:50%; float:right; text-align:right;">
				<jsp:include page="top2.jsp"></jsp:include>
            </div>
        </div>
        <!-- 后台提示信息 -->
		<input type="hidden" value="${requestScope.addMsg}" id="tips"/>
        <!-- 主体内容 -->
        <div style="width:100%; height:560px;  font-family: '微软雅黑' ">
            <div style="width: 1100px; height:530px; border:1px solid #406BDD; border-radius:10px; margin:38px 60px;">   
            	<!-- 左边菜单栏 -->
            	<div style="width:20%; height:100%; background:#406BDD; float:left; border-top-left-radius:10px; border-bottom-left-radius:10px;">         		       
            		<jsp:include page="left.jsp"></jsp:include>
            	</div>
            	<div style="width:80%; float:left; background:#EFEFEF; height:100%; border-top-right-radius:10px; border-bottom-right-radius:10px;">    
					<div style="width:95%; height:50px; background:#FFF; margin:6px auto; border:1px solid #888;"></div>
					<div style="margin:10px auto; background:#FFF; width:95%; border:1px solid #888;">
						<!-- 添加汽车人信息 -->
						<form action="${pageContext.request.contextPath }/car/Car_addcar.action" method="post" onsubmit="return checkAll()">
					    	<table border="0px">
						        <tr height="50px">
						            <td width="160px">&nbsp;请输入客户编号：</td>
						            <td width="380px">&nbsp;
						                <input type="text" style="width: 220px; height: 32px; padding-left: 5px;" name="customer.cid" id="cida" onBlur="customerExits()" placeholder="客户编号"/>
						                <div class="msg" id="cidamsg"></div>
						                <input type="hidden" id="usernamemsg"/>				              
						            </td>
						        </tr>
						        <tr height="50px">
						            <td>&nbsp;请输入汽车名称：</td>
						            <td>&nbsp;
						                <input type="text" style="width: 220px; height: 32px; padding-left: 5px;" name="cname" id="cname" onBlur="cnameCheck()" placeholder="汽车名称"/>
						                <div class="msg" id="cnamemsg"></div>
						            </td>
						        </tr>
						        <tr height="50px">
						            <td>&nbsp;请输入车牌号码：</td>
						            <td>&nbsp;
						                <input type="text" style="width: 220px; height: 32px; padding-left: 5px;" name="cno" id="cno" onBlur="cnoCheck()" placeholder="车牌号码"/>
						                <div class="msg" id="cnomsg"></div>
						            </td>
						        </tr>
						        <tr height="50px">
						            <td>&nbsp;请输入车架号：</td>
						            <td>&nbsp;
						                <input type="text" style="width: 220px; height: 32px; padding-left: 5px;" name="cvin" id="cvin" onBlur="cvinCheck()" placeholder="车架号"/>
						                <div class="msg" id="cvinmsg"></div>
						            </td>
						        </tr>
						        <tr height="50px">
						            <td>&nbsp;请输入发动机号:</td>
						            <td>&nbsp;
						                <input type="text" style="width: 220px; height: 32px; padding-left: 5px;" name="cengine" id="cengine" onBlur="cengineCheck()" placeholder="发动机号"/>
						             	<div class="msg" id="cenginemsg"></div>
						            </td>
						        </tr>						        
						        <tr height="50px">
						            <td>&nbsp;请选择汽车类型:</td>
						            <td>&nbsp;
						                <select name="ctype" id="ctype" onblur="ctypeCheck()">
						                    <option>--车辆类型--</option>
						                    <option value="轿车">轿车</option>
						                    <option value="巴士">巴士</option>
						                    <option value="货车">货车</option>						                    
						                </select>
						                <div class="msg" style="margin:-28px 250px;" id="ctypemsg"></div>
						            </td>
						        </tr>						        
						        <tr height="50px">
						            <td>&nbsp;请输入备注：</td>
						            <td>&nbsp;
						                <textarea rows="5" cols="60" name="cdesc" style="padding:5px 5px;"></textarea>
						            </td>
						        </tr>						        						        
						        <tr height="52px" align="center">
						            <td colspan="2">
						            	<input type="submit" value="确认" onclick="checkAll2()" style="width: 120px; height: 32px; background:#406BDD; border: none; color: #FFF; font-size: 16px;"/>
						           		<a href="${pageContext.request.contextPath }/car/Car_query.action">
											<input type="button" style="width: 120px; height: 32px; background:#406BDD; border: none; color: #FFF; font-size: 16px;" value="返回"/>
										</a>
						           	</td>
						        </tr>
						    </table>
						</form>
					</div>
				</div> 
            </div>
        </div>
        <!-- 版权 -->
        <div style="width:100%; height:30px; text-align:center; line-height:30px; float:left; font-size:14px;">Copyright© 中国报险网 2007-2015，All Rights Reserved</div>
    </div>
   	<script src="./js/ajax.js"></script>    
    <script src="./js/util.js"></script>
	<SCRIPT src="./js/car.js"></SCRIPT>
</body>
</html>
